package com.milkyTea.Services;


import java.io.IOException;

import javax.servlet.ServletException;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.milkyTea.Dao.DesignDao;
import com.milkyTea.Dao.FooterDao;



@WebServlet("/DesignServlet")
public class DesignServlet extends HttpServlet {
	
	DesignDao Design=new DesignDao();
	FooterDao footDao=new FooterDao();
	@Override
	/*
	 * protected void service(HttpServletRequest req, HttpServletResponse resp)
	 * throws ServletException, IOException {
	 * 
	 * req.setAttribute("design", Design.getDseign());
	 * 
	 * req.getRequestDispatcher("/about.jsp").forward(req, resp);
	 * 
	 * }
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
		request.setAttribute("home", footDao.gethomeinfo());	
		request.setAttribute("design", Design.getDseign());	
		
		request.getRequestDispatcher("/about.jsp").forward(request, response);
	}

}
